package com.ruoyi.teacher.mapper;

import com.ruoyi.teacher.domain.SysStudent;

import java.util.List;

/**
 * sysStudentMapper接口
 * 
 * @author ruoyi
 * @date 2022-01-13
 */
public interface SysStudentMapper 
{
    /**
     * 查询sysStudent
     * 
     * @param id sysStudent主键
     * @return sysStudent
     */
    public SysStudent selectSysStudentById(Long id);

    public SysStudent selectSysStudentByUserName(String userName);

    /**
     * 查询sysStudent列表
     * 
     * @param sysStudent sysStudent
     * @return sysStudent集合
     */
    public List<SysStudent> selectSysStudentList(SysStudent sysStudent);

    /**
     * 新增sysStudent
     * 
     * @param sysStudent sysStudent
     * @return 结果
     */
    public int insertSysStudent(SysStudent sysStudent);

    /**
     * 修改sysStudent
     * 
     * @param sysStudent sysStudent
     * @return 结果
     */
    public int updateSysStudent(SysStudent sysStudent);

    /**
     * 删除sysStudent
     * 
     * @param id sysStudent主键
     * @return 结果
     */
    public int deleteSysStudentById(Long id);

    /**
     * 批量删除sysStudent
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysStudentByIds(String[] ids);

    public int checkCardUnique(String card);

    public int checkStudentIdUnique(String studentId);

}
